const env = process.env.NODE_ENV;

const productionEnv = {
  domain: 'https://www.dduo.online',
  mysql: {
    type: 'mysql',
    host: '123.207.214.35',
    port: 3306,
    username: 'task',
    password: 'XnbhmjyCpxasnafR',
    database: 'task',
    synchronize: true,
    autoLoadEntities: true,
  },
  wechat: {
    appId: 'wx12be7e8ea56989d4',
    secret: 'acab720df6633b03febd916f8fd0565e',
    mchId: '1708576218',
    apiV3Key: 'duoduobang200389duoduobang200389',
    serialNo: '197819DE6A20D8387D1A1E57DCF269602D1765EB',
  },
  jwt: {
    secret: 'task-project-20250210',
    expiresIn: '7d',
  },
  tian: {
    apiKey: '75ddc0531e158ea7944fe7f3ae813e4f',
  },
};

const developmentEnv = {
  domain: 'https://www.dduo.online',
  mysql: {
    type: 'mysql',
    host: '123.207.214.35',
    port: 3306,
    username: 'task',
    password: 'XnbhmjyCpxasnafR',
    database: 'task',
    synchronize: true,
    autoLoadEntities: true,
  },
  wechat: {
    appId: 'wx12be7e8ea56989d4',
    secret: 'acab720df6633b03febd916f8fd0565e',
    mchId: '1708576218',
    apiV3Key: 'duoduobang200389duoduobang200389',
    serialNo: '197819DE6A20D8387D1A1E57DCF269602D1765EB',
  },
  jwt: {
    secret: 'task-project-20250210',
    expiresIn: '7d',
  },
  tian: {
    apiKey: '75ddc0531e158ea7944fe7f3ae813e4f',
  },
  alioss: {
    accessKeyId: 'LTAI5tH7jveaV3PjvSkD4wkp',
    accessKeySecret: 'JQdZlAUwzTaMqazb2xUYlvc6iEIBIq',
  },
  alibailian: {
    token: 'sk-738e987a5a2b4070b502b1bd7afe2e3f',
  },
};

export default env === 'development' ? developmentEnv : developmentEnv;
